import tui from '../../../common/httpRequest'
Page({
  data: {

  },
  chooseImage() {
    wx.chooseImage({
      count: 1,
      sizeType: ['original', 'compressed'],
      sourceType: ['album', 'camera'],
      success: res => {
        const tempFilePaths = res.tempFilePaths[0];
        tui.href('../cropper-default-old/cropper-default-old?src=' + tempFilePaths);
      }
    });
  },
  customCropper() {
    tui.href('../cropper-custom-old/cropper-custom-old');
  }
})